package week03.starbucks_ex;

/**
 * Created by applicatisonsky on 2017/9/27.
 */
//定义装饰物
public class IceCream extends DrinkDecorator{
    private double price = 5;
    public IceCream(IDrink drink) {
        super(drink);
    }
    @Override
    public double getPrice() {
        System.out.println("IceCream: "+price);
        return price+drink.getPrice();
    }
}
